package ru.rchervot.sanasar.client.rpc;

import ru.rchervot.sanasar.client.model.Query;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GotQuery implements AsyncCallback<GetQueryResponse> {
	@Override
	public void onFailure(Throwable oops) {
	}
	
	@Override
	public void onSuccess(GetQueryResponse result) {
		got(result.getQuery());
	}
	
	public abstract void got(Query query);
}
